package ua.kharkov.knure.pereverziev.diploma.db.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity(name = "week_days")
public class WeekDay extends HasId {

	private static final long serialVersionUID = 748414524545321L;

	public WeekDay() {
	}

	public WeekDay(final String day) {
		this.day = day;
	}

	@Id
	@Column(name = "day_id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long id;
	private String day;

	@Override
	public String toString() {
		return day;
	}

	@Override
	public Long getId() {
		return id;
	}

	@Override
	public void setId(final Long id) {
		this.id = id;
	}

	public String getDay() {
		return day;
	}

	public void setDay(final String day) {
		this.day = day;
	}

}
